# -*- coding: utf-8 -*-

################################################################################
## Form generated from reading UI file 'Frame.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *

import resource_rc

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.setWindowModality(Qt.WindowModal)
        MainWindow.resize(800, 600)
        MainWindow.setWindowOpacity(1.000000000000000)
        MainWindow.setStyleSheet(u"padding:0px")
        MainWindow.setDocumentMode(False)
        self.actionshoujian = QAction(MainWindow)
        self.actionshoujian.setObjectName(u"actionshoujian")
        self.actionshoujian.setCheckable(True)
        icon = QIcon()
        icon.addFile(u":/resources/shoujianxiang.png", QSize(), QIcon.Normal, QIcon.Off)
        self.actionshoujian.setIcon(icon)
        self.actionfajian = QAction(MainWindow)
        self.actionfajian.setObjectName(u"actionfajian")
        self.actionfajian.setCheckable(True)
        icon1 = QIcon()
        icon1.addFile(u":/resources/fajianxiang.png", QSize(), QIcon.Normal, QIcon.Off)
        self.actionfajian.setIcon(icon1)
        self.actionwrite = QAction(MainWindow)
        self.actionwrite.setObjectName(u"actionwrite")
        self.actionwrite.setCheckable(True)
        icon2 = QIcon()
        icon2.addFile(u":/resources/xieyoujian.png", QSize(), QIcon.Normal, QIcon.Off)
        self.actionwrite.setIcon(icon2)
        self.actionwrite.setIconVisibleInMenu(True)
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.gridLayout = QGridLayout(self.centralwidget)
        self.gridLayout.setSpacing(0)
        self.gridLayout.setObjectName(u"gridLayout")
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_9 = QHBoxLayout()
        self.horizontalLayout_9.setSpacing(0)
        self.horizontalLayout_9.setObjectName(u"horizontalLayout_9")
        self.widget_2 = QWidget(self.centralwidget)
        self.widget_2.setObjectName(u"widget_2")
        self.widget_2.setMinimumSize(QSize(50, 0))
        self.widget_2.setMaximumSize(QSize(50, 16777215))
        self.widget_2.setStyleSheet(u"background-color: rgb(0, 100, 100,255);")
        self.verticalLayout_6 = QVBoxLayout(self.widget_2)
        self.verticalLayout_6.setSpacing(5)
        self.verticalLayout_6.setObjectName(u"verticalLayout_6")
        self.verticalLayout_6.setContentsMargins(7, 7, 0, 7)
        self.verticalSpacer_2 = QSpacerItem(20, 30, QSizePolicy.Minimum, QSizePolicy.Minimum)

        self.verticalLayout_6.addItem(self.verticalSpacer_2)

        self.pushButton_6 = QPushButton(self.widget_2)
        self.pushButton_6.setObjectName(u"pushButton_6")
        self.pushButton_6.setMinimumSize(QSize(36, 36))
        self.pushButton_6.setMaximumSize(QSize(36, 36))
        self.pushButton_6.setIcon(icon)
        self.pushButton_6.setIconSize(QSize(36, 36))
        self.pushButton_6.setFlat(True)

        self.verticalLayout_6.addWidget(self.pushButton_6)

        self.pushButton_5 = QPushButton(self.widget_2)
        self.pushButton_5.setObjectName(u"pushButton_5")
        self.pushButton_5.setMinimumSize(QSize(36, 36))
        self.pushButton_5.setMaximumSize(QSize(36, 36))
        self.pushButton_5.setIcon(icon1)
        self.pushButton_5.setIconSize(QSize(36, 36))
        self.pushButton_5.setFlat(True)

        self.verticalLayout_6.addWidget(self.pushButton_5)

        self.pushButton_7 = QPushButton(self.widget_2)
        self.pushButton_7.setObjectName(u"pushButton_7")
        self.pushButton_7.setMinimumSize(QSize(36, 36))
        self.pushButton_7.setMaximumSize(QSize(36, 36))
        self.pushButton_7.setIcon(icon2)
        self.pushButton_7.setIconSize(QSize(36, 36))
        self.pushButton_7.setFlat(True)

        self.verticalLayout_6.addWidget(self.pushButton_7)

        self.verticalSpacer = QSpacerItem(20, 376, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.verticalLayout_6.addItem(self.verticalSpacer)


        self.horizontalLayout_9.addWidget(self.widget_2)

        self.verticalLayout_5 = QVBoxLayout()
        self.verticalLayout_5.setSpacing(0)
        self.verticalLayout_5.setObjectName(u"verticalLayout_5")
        self.widget = QWidget(self.centralwidget)
        self.widget.setObjectName(u"widget")
        self.widget.setMinimumSize(QSize(0, 40))
        self.widget.setMaximumSize(QSize(16777215, 40))
        self.horizontalLayout_8 = QHBoxLayout(self.widget)
        self.horizontalLayout_8.setSpacing(0)
        self.horizontalLayout_8.setObjectName(u"horizontalLayout_8")
        self.horizontalLayout_8.setContentsMargins(0, 0, 2, 0)
        self.horizontalSpacer_4 = QSpacerItem(150, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_8.addItem(self.horizontalSpacer_4)

        self.lbTitle = QLabel(self.widget)
        self.lbTitle.setObjectName(u"lbTitle")
        self.lbTitle.setTextFormat(Qt.MarkdownText)

        self.horizontalLayout_8.addWidget(self.lbTitle)

        self.horizontalSpacer_3 = QSpacerItem(705, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_8.addItem(self.horizontalSpacer_3)

        self.pushButton = QPushButton(self.widget)
        self.pushButton.setObjectName(u"pushButton")
        self.pushButton.setMinimumSize(QSize(36, 36))
        self.pushButton.setMaximumSize(QSize(36, 36))
        self.pushButton.setFocusPolicy(Qt.NoFocus)
        self.pushButton.setFlat(True)

        self.horizontalLayout_8.addWidget(self.pushButton)


        self.verticalLayout_5.addWidget(self.widget)

        self.stackedWidget = QStackedWidget(self.centralwidget)
        self.stackedWidget.setObjectName(u"stackedWidget")
        self.stackedWidget.setFrameShape(QFrame.NoFrame)
        self.stackedWidget.setFrameShadow(QFrame.Plain)
        self.stackedWidget.setLineWidth(0)
        self.stackedWidget.setMidLineWidth(1)
        self.received = QWidget()
        self.received.setObjectName(u"received")
        self.horizontalLayout = QHBoxLayout(self.received)
        self.horizontalLayout.setSpacing(1)
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.horizontalLayout.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout = QVBoxLayout()
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.cbfilter = QComboBox(self.received)
        self.cbfilter.addItem("")
        self.cbfilter.addItem("")
        self.cbfilter.addItem("")
        self.cbfilter.addItem("")
        self.cbfilter.setObjectName(u"cbfilter")
        self.cbfilter.setMinimumSize(QSize(0, 30))
        self.cbfilter.setStyleSheet(u"background-color: rgb(255, 255, 255);")
        self.cbfilter.setEditable(True)
        self.cbfilter.setInsertPolicy(QComboBox.NoInsert)

        self.verticalLayout.addWidget(self.cbfilter)

        self.lvMsgs = QListView(self.received)
        self.lvMsgs.setObjectName(u"lvMsgs")
        sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(20)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lvMsgs.sizePolicy().hasHeightForWidth())
        self.lvMsgs.setSizePolicy(sizePolicy)
        self.lvMsgs.setMaximumSize(QSize(180, 16777215))
        self.lvMsgs.setStyleSheet(u"background-color: rgb(255, 255, 255);")

        self.verticalLayout.addWidget(self.lvMsgs)


        self.horizontalLayout.addLayout(self.verticalLayout)

        self.txtContent = QTextBrowser(self.received)
        self.txtContent.setObjectName(u"txtContent")
        self.txtContent.setStyleSheet(u"background-color: rgb(255, 255, 255);")
        self.txtContent.setReadOnly(True)

        self.horizontalLayout.addWidget(self.txtContent)

        self.stackedWidget.addWidget(self.received)
        self.sendbox = QWidget()
        self.sendbox.setObjectName(u"sendbox")
        self.horizontalLayout_2 = QHBoxLayout(self.sendbox)
        self.horizontalLayout_2.setSpacing(1)
        self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
        self.horizontalLayout_2.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_2 = QVBoxLayout()
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName(u"verticalLayout_2")
        self.cbfilter_sendbox = QComboBox(self.sendbox)
        self.cbfilter_sendbox.addItem("")
        self.cbfilter_sendbox.addItem("")
        self.cbfilter_sendbox.addItem("")
        self.cbfilter_sendbox.addItem("")
        self.cbfilter_sendbox.setObjectName(u"cbfilter_sendbox")
        self.cbfilter_sendbox.setMinimumSize(QSize(0, 30))
        self.cbfilter_sendbox.setStyleSheet(u"background-color: rgb(255, 255, 255);")
        self.cbfilter_sendbox.setEditable(True)
        self.cbfilter_sendbox.setInsertPolicy(QComboBox.NoInsert)

        self.verticalLayout_2.addWidget(self.cbfilter_sendbox)

        self.lvMsgs_sendbox = QListView(self.sendbox)
        self.lvMsgs_sendbox.setObjectName(u"lvMsgs_sendbox")
        sizePolicy.setHeightForWidth(self.lvMsgs_sendbox.sizePolicy().hasHeightForWidth())
        self.lvMsgs_sendbox.setSizePolicy(sizePolicy)
        self.lvMsgs_sendbox.setMaximumSize(QSize(180, 16777215))
        self.lvMsgs_sendbox.setStyleSheet(u"background-color: rgb(255, 255, 255);")

        self.verticalLayout_2.addWidget(self.lvMsgs_sendbox)


        self.horizontalLayout_2.addLayout(self.verticalLayout_2)

        self.textContent_sendbox = QTextBrowser(self.sendbox)
        self.textContent_sendbox.setObjectName(u"textContent_sendbox")
        self.textContent_sendbox.setStyleSheet(u"background-color: rgb(255, 255, 255);")
        self.textContent_sendbox.setReadOnly(True)

        self.horizontalLayout_2.addWidget(self.textContent_sendbox)

        self.stackedWidget.addWidget(self.sendbox)
        self.newmessage = QWidget()
        self.newmessage.setObjectName(u"newmessage")
        self.verticalLayout_4 = QVBoxLayout(self.newmessage)
        self.verticalLayout_4.setSpacing(2)
        self.verticalLayout_4.setObjectName(u"verticalLayout_4")
        self.verticalLayout_4.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout_5 = QHBoxLayout()
        self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
        self.label = QLabel(self.newmessage)
        self.label.setObjectName(u"label")

        self.horizontalLayout_5.addWidget(self.label)

        self.edtTitle = QLineEdit(self.newmessage)
        self.edtTitle.setObjectName(u"edtTitle")
        self.edtTitle.setMinimumSize(QSize(0, 30))

        self.horizontalLayout_5.addWidget(self.edtTitle)


        self.verticalLayout_4.addLayout(self.horizontalLayout_5)

        self.horizontalLayout_4 = QHBoxLayout()
        self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
        self.label_2 = QLabel(self.newmessage)
        self.label_2.setObjectName(u"label_2")

        self.horizontalLayout_4.addWidget(self.label_2)

        self.edtShoujianren = QLineEdit(self.newmessage)
        self.edtShoujianren.setObjectName(u"edtShoujianren")
        self.edtShoujianren.setMinimumSize(QSize(0, 30))

        self.horizontalLayout_4.addWidget(self.edtShoujianren)

        self.btnSelect = QPushButton(self.newmessage)
        self.btnSelect.setObjectName(u"btnSelect")
        sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
        sizePolicy1.setHorizontalStretch(0)
        sizePolicy1.setVerticalStretch(0)
        sizePolicy1.setHeightForWidth(self.btnSelect.sizePolicy().hasHeightForWidth())
        self.btnSelect.setSizePolicy(sizePolicy1)
        self.btnSelect.setMinimumSize(QSize(80, 30))

        self.horizontalLayout_4.addWidget(self.btnSelect)


        self.verticalLayout_4.addLayout(self.horizontalLayout_4)

        self.horizontalLayout_3 = QHBoxLayout()
        self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
        self.label_3 = QLabel(self.newmessage)
        self.label_3.setObjectName(u"label_3")

        self.horizontalLayout_3.addWidget(self.label_3)

        self.lvAtt = QListView(self.newmessage)
        self.lvAtt.setObjectName(u"lvAtt")
        sizePolicy2 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)
        sizePolicy2.setHorizontalStretch(0)
        sizePolicy2.setVerticalStretch(0)
        sizePolicy2.setHeightForWidth(self.lvAtt.sizePolicy().hasHeightForWidth())
        self.lvAtt.setSizePolicy(sizePolicy2)
        self.lvAtt.setMaximumSize(QSize(16777215, 100))

        self.horizontalLayout_3.addWidget(self.lvAtt)

        self.verticalLayout_3 = QVBoxLayout()
        self.verticalLayout_3.setObjectName(u"verticalLayout_3")
        self.btnaddAtt = QPushButton(self.newmessage)
        self.btnaddAtt.setObjectName(u"btnaddAtt")
        sizePolicy1.setHeightForWidth(self.btnaddAtt.sizePolicy().hasHeightForWidth())
        self.btnaddAtt.setSizePolicy(sizePolicy1)
        self.btnaddAtt.setMinimumSize(QSize(80, 30))

        self.verticalLayout_3.addWidget(self.btnaddAtt)

        self.btndelAtt = QPushButton(self.newmessage)
        self.btndelAtt.setObjectName(u"btndelAtt")
        sizePolicy1.setHeightForWidth(self.btndelAtt.sizePolicy().hasHeightForWidth())
        self.btndelAtt.setSizePolicy(sizePolicy1)
        self.btndelAtt.setMinimumSize(QSize(0, 30))

        self.verticalLayout_3.addWidget(self.btndelAtt)


        self.horizontalLayout_3.addLayout(self.verticalLayout_3)


        self.verticalLayout_4.addLayout(self.horizontalLayout_3)

        self.horizontalLayout_6 = QHBoxLayout()
        self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
        self.label_4 = QLabel(self.newmessage)
        self.label_4.setObjectName(u"label_4")

        self.horizontalLayout_6.addWidget(self.label_4)

        self.edtContent = QTextEdit(self.newmessage)
        self.edtContent.setObjectName(u"edtContent")

        self.horizontalLayout_6.addWidget(self.edtContent)


        self.verticalLayout_4.addLayout(self.horizontalLayout_6)

        self.horizontalLayout_7 = QHBoxLayout()
        self.horizontalLayout_7.setObjectName(u"horizontalLayout_7")
        self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_7.addItem(self.horizontalSpacer)

        self.btnSend = QPushButton(self.newmessage)
        self.btnSend.setObjectName(u"btnSend")
        sizePolicy3 = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
        sizePolicy3.setHorizontalStretch(0)
        sizePolicy3.setVerticalStretch(0)
        sizePolicy3.setHeightForWidth(self.btnSend.sizePolicy().hasHeightForWidth())
        self.btnSend.setSizePolicy(sizePolicy3)
        self.btnSend.setMinimumSize(QSize(100, 28))

        self.horizontalLayout_7.addWidget(self.btnSend)

        self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_7.addItem(self.horizontalSpacer_2)


        self.verticalLayout_4.addLayout(self.horizontalLayout_7)

        self.stackedWidget.addWidget(self.newmessage)

        self.verticalLayout_5.addWidget(self.stackedWidget)


        self.horizontalLayout_9.addLayout(self.verticalLayout_5)


        self.gridLayout.addLayout(self.horizontalLayout_9, 0, 0, 1, 1)

        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        self.pushButton.clicked.connect(MainWindow.close)
        self.pushButton_6.clicked.connect(MainWindow.onShoujian)
        self.pushButton_5.clicked.connect(MainWindow.onFajian)
        self.pushButton_7.clicked.connect(MainWindow.onNew)
        self.cbfilter.currentTextChanged.connect(MainWindow.onShoujianFilterChanged)
        self.lvMsgs.clicked.connect(MainWindow.onShoujianListClicked)
        self.cbfilter_sendbox.currentTextChanged.connect(MainWindow.onFajianFilterChanged)
        self.lvMsgs_sendbox.clicked.connect(MainWindow.onFajianListClicked)
        self.btnSend.clicked.connect(MainWindow.onSendMessage)
        self.btnaddAtt.clicked.connect(MainWindow.onAdd)
        self.btndelAtt.clicked.connect(MainWindow.onDelete)
        self.btnSelect.clicked.connect(MainWindow.onSelecet)

        self.stackedWidget.setCurrentIndex(0)


        QMetaObject.connectSlotsByName(MainWindow)
    # setupUi

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MainWindow", None))
        self.actionshoujian.setText(QCoreApplication.translate("MainWindow", u"shoujian", None))
#if QT_CONFIG(tooltip)
        self.actionshoujian.setToolTip(QCoreApplication.translate("MainWindow", u"\u6536\u4ef6\u7bb1", None))
#endif // QT_CONFIG(tooltip)
        self.actionfajian.setText(QCoreApplication.translate("MainWindow", u"fajian", None))
#if QT_CONFIG(tooltip)
        self.actionfajian.setToolTip(QCoreApplication.translate("MainWindow", u"\u53d1\u4ef6\u7bb1", None))
#endif // QT_CONFIG(tooltip)
        self.actionwrite.setText(QCoreApplication.translate("MainWindow", u"write", None))
#if QT_CONFIG(tooltip)
        self.actionwrite.setToolTip(QCoreApplication.translate("MainWindow", u"\u5199\u90ae\u4ef6", None))
#endif // QT_CONFIG(tooltip)
        self.pushButton_6.setText("")
        self.pushButton_5.setText("")
        self.pushButton_7.setText("")
        self.lbTitle.setText(QCoreApplication.translate("MainWindow", u"### \u6536\u4ef6\u7bb1", None))
        self.pushButton.setText(QCoreApplication.translate("MainWindow", u"X", None))
        self.cbfilter.setItemText(0, QCoreApplication.translate("MainWindow", u"\u6240\u6709", None))
        self.cbfilter.setItemText(1, QCoreApplication.translate("MainWindow", u"\u4eca\u5929", None))
        self.cbfilter.setItemText(2, QCoreApplication.translate("MainWindow", u"\u4e00\u5468", None))
        self.cbfilter.setItemText(3, QCoreApplication.translate("MainWindow", u"\u4e00\u4e2a\u6708", None))

        self.cbfilter_sendbox.setItemText(0, QCoreApplication.translate("MainWindow", u"\u6240\u6709", None))
        self.cbfilter_sendbox.setItemText(1, QCoreApplication.translate("MainWindow", u"\u4eca\u5929", None))
        self.cbfilter_sendbox.setItemText(2, QCoreApplication.translate("MainWindow", u"\u4e00\u5468", None))
        self.cbfilter_sendbox.setItemText(3, QCoreApplication.translate("MainWindow", u"\u4e00\u4e2a\u6708", None))

        self.label.setText(QCoreApplication.translate("MainWindow", u"\u6807  \u9898\uff1a", None))
        self.label_2.setText(QCoreApplication.translate("MainWindow", u"\u6536\u4ef6\u4eba\uff1a", None))
        self.btnSelect.setText(QCoreApplication.translate("MainWindow", u"\u9009\u62e9", None))
        self.label_3.setText(QCoreApplication.translate("MainWindow", u"\u9644  \u4ef6\uff1a", None))
        self.btnaddAtt.setText(QCoreApplication.translate("MainWindow", u"\u6dfb\u52a0", None))
        self.btndelAtt.setText(QCoreApplication.translate("MainWindow", u"\u5220\u9664", None))
        self.label_4.setText(QCoreApplication.translate("MainWindow", u"\u6b63  \u6587\uff1a", None))
        self.btnSend.setText(QCoreApplication.translate("MainWindow", u"\u53d1\u9001", None))
    # retranslateUi

